@W-22151509 Add JWT Bearer authentication for certificate-based OAuth#376
Open
charithaT07 wants to merge 6 commits intomainfrom
Open
@W-22151509 Add JWT Bearer authentication for certificate-based OAuth#376charithaT07 wants to merge 6 commits intomainfrom
charithaT07 wants to merge 6 commits intomainfrom
Conversation
clavery
requested changes
Apr 24, 2026
Collaborator
clavery
left a comment
There was a problem hiding this comment.
@charithaT07 I did a review with claude and there's some suggestions I agree with.
given the length I'm linking out to them here: https://share.plannotator.ai/p/vuloceet#key=bOUkhlGJMqyZ425pKpD3ouoq2jANfZ___cGD-MgcELw
Collaborator
Author
Addressed the review suggestions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Overview
Implements JWT Bearer authentication (RFC 7523) for the B2C CLI, enabling certificate-based authentication as a more secure alternative to client secrets. This is particularly useful for CI/CD pipelines and production environments.
What Changed
Implementation Details
Key Files
Testing
Usage Example
Generate certificate pair
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
Upload cert.pem to Account Manager API Client
Use JWT auth
export SFCC_JWT_CERT=./cert.pem
export SFCC_JWT_KEY=./key.pem
b2c sandbox list
Dependencies
3pl-approvedis set by a maintainerpnpm test)pnpm run format)